Optimal. Leaf size=237 \[ \frac {2 a \tan (c+d x)}{d \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}+\frac {2 a \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b^2 d \sqrt {a+b}}+\frac {2 \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b d \sqrt {a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.29, antiderivative size = 237, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3836, 4005, 3832, 4004} \[ \frac {2 a \tan (c+d x)}{d \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}+\frac {2 a \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b^2 d \sqrt {a+b}}+\frac {2 \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b d \sqrt {a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3832
Rule 3836
Rule 4004
Rule 4005
Rubi steps
\begin {align*} \int \frac {\sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx &=\frac {2 a \tan (c+d x)}{\left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {2 \int \frac {\sec (c+d x) \left (-\frac {b}{2}-\frac {1}{2} a \sec (c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx}{a^2-b^2}\\ &=\frac {2 a \tan (c+d x)}{\left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {\int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{a+b}-\frac {a \int \frac {\sec (c+d x) (1+\sec (c+d x))}{\sqrt {a+b \sec (c+d x)}} \, dx}{a^2-b^2}\\ &=\frac {2 a \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{b^2 \sqrt {a+b} d}+\frac {2 \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{b \sqrt {a+b} d}+\frac {2 a \tan (c+d x)}{\left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 9.43, size = 249, normalized size = 1.05 \[ \frac {\sec \left (\frac {1}{2} (c+d x)\right ) \sec (c+d x) \left (a (a-b) \left (\sin \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {3}{2} (c+d x)\right )\right )-4 b (a+b) \cos ^3\left (\frac {1}{2} (c+d x)\right ) \sqrt {\frac {1}{\sec (c+d x)+1}} \sqrt {\frac {a \cos (c+d x)+b}{(a+b) (\cos (c+d x)+1)}} F\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right )+4 a (a+b) \cos ^3\left (\frac {1}{2} (c+d x)\right ) \sqrt {\frac {1}{\sec (c+d x)+1}} \sqrt {\frac {a \cos (c+d x)+b}{(a+b) (\cos (c+d x)+1)}} E\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right )\right )}{b d \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.52, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {b \sec \left (d x + c\right ) + a} \sec \left (d x + c\right )^{2}}{b^{2} \sec \left (d x + c\right )^{2} + 2 \, a b \sec \left (d x + c\right ) + a^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (d x + c\right )^{2}}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.21, size = 837, normalized size = 3.53 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (d x + c\right )^{2}}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{{\cos \left (c+d\,x\right )}^2\,{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec ^{2}{\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{\frac {3}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________